<template>
  <el-container>
    <basic-crud :option="option" apiGetListUrl="/mes/workInstallItemController/listInstallation">
    </basic-crud>
  </el-container>
</template>

<script setup>
const option = ref({
  highlightCurrentRow: true,
  addBtn:false,
  size: 'small',
  menu:false,
  column:[
    {
      label:'项目号',
      prop: 'workOrderCode',
      hide: true,
      sortable: true,
    },
    {
      label: "产品型号",
      prop: "modelName",
      search: true,
      sort: true,
      sortable: true,
    },
    {
      label: "产品名称",
      prop: "pdmProductName",
      search: true,
      sortable: true,
    },
    {
      label: "产品编号",
      prop: "pdmProductCode",
      search: true,
      sortable: true,
    },
    {
      label: "规程编号",
      prop: "primaryTargetCode",
      hide: true,
      sortable: true,
    },   {
      label: "规程名称",
      prop: "primaryTargetName",
      hide:true,
      sortable: true,
    },
    {
      label: "物料图号",
      prop: "code",
      sort: true,
      sortable: true,
      search: true,
    },{
      label: "物料名称",
      prop: "materialName",
      sort: true,
      sortable: true,
      search: true,
    },{
      label: "批次号/编号",
      prop: "materialRealCode",
    },{
      label: "安装日期",
      prop: "installDate",
      formatter: (row) => {
        return row.installDate?.substring(0, 10) || "";
      },
    },{
      label: "软件版本",
      prop: "softwareRev",
      width: 150
    }
  ]
})
</script>

<style lang="scss" scoped>

</style>
